#pragma once
//#include "/home/cl/cprodll/cpp-httplib/httplib.h"
#include "httplib.h"
#include<string>
#include "nlohmann/json.hpp"
class CClient
{
public:
	CClient();
	void DoClient();				//执行流程
	void ShowInput(int type);			//显示客户端输入
	void SendPostToServer();			//发送post请求到服务端
        void GetServer();				//获取服务端数据
	void DeleteServer();				//删除夫妇段数据
	void UpdateServer();				//更新服务端数据
        //bool IsConnect();				//判断是否连接上服务器
	bool IsContinue();				//判断是否继续执行
	int m_clientFlag;				//标志
private:
	std::shared_ptr<httplib::Client> m_clientManager;//客户端
	httplib::Headers m_clientHeader;
	std::string m_strId;
	std::string m_strName;
	nlohmann::json m_clientJson;
};
	
